package cn.agiledata.bank.linkbank.impl.mock;

import java.math.BigDecimal;
import java.util.Date;

import cn.agiledata.bank.linkbank.impl.AbstractBankNetPayRequest;
import cn.agiledata.bank.linkbank.impl.AbstractBankPayRequest;

/**
 * 模拟银行网上银行支付请求
 * 
 * @author maxianbo
 * 
 */
public final class MockNetPayRequest extends AbstractBankNetPayRequest {

    public void setAmount(BigDecimal amount) {
        setParameter("amount", amount.setScale(2).toString());
    }

    public void setBranchId(String branchId) {
        setParameter("branchId", branchId);
    }

    public void setCurrencyType(String currencyType) {
        setParameter("currencyType", currencyType);
    }

    public void setMerchantId(String merchantId) {
        setParameter("merchantId", merchantId);
    }

    public String getMerchantUrl() {
        return getParameter("merchantUrl");
    }

    public void setMerchantUrl(String merchantUrl) {
        setParameter("merchantUrl", merchantUrl);
    }

    public void setOrderId(String orderId) {
        setParameter("orderId", orderId);
    }

    public void setDate(Date date) {
        setParameter("date", date.toString());
    }

    protected AbstractBankPayRequest getCopiedInstance() {
        return new MockNetPayRequest();
    }

}
